﻿using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Meiam.System.Interfaces
{
    public class SqlSugarHelper
    {
        public static SqlSugarScope SqlClientInstance(string constring)
        {
            SqlSugarScope db = new SqlSugarScope(new ConnectionConfig()
            {
                DbType = SqlSugar.DbType.MySql,
                ConnectionString = constring,
                InitKeyType = InitKeyType.Attribute,
                IsAutoCloseConnection = true//,
            });
            return db;
        }
    }
}
